import request from '@/utils/request'

/*  登录的接口 */
export const loginAPI = (data) => {
  return request({
    url: '/park/login',
    method: 'POST',
    data
  })
}
/* 获取用户信息的接口 */
export const fetchUserInfoAPI = () => {
  return request({
    url: 'park/user/profile',
    method: 'GET'
  })
}
